/* 统计卡片样式 */
.stat-card {
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-card .title {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 5px;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0;
}

/* 图表容器样式 */
.chart-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-container .chart-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

/* 表格样式 */
.ranking-table {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ranking-table .table {
    margin-bottom: 0;
}

.ranking-table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.ranking-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 日期选择器样式 */
.daterange-container {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.daterange-container .input-group {
    width: 100%;
}

#daterange {
    border-radius: 4px;
    border: 1px solid #ced4da;
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* 导出按钮样式 */
.export-btn {
    margin-left: 10px;
    border-radius: 4px;
    padding: 8px 15px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 15px;
    }
    
    .chart-container {
        margin-bottom: 15px;
    }
    
    .ranking-table {
        margin-bottom: 15px;
    }
    
    .stat-card .value {
        font-size: 1.5rem;
    }
}

/* 加载动画 */
.loading {
    position: relative;
    min-height: 200px;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 主题颜色 */
.bg-primary {
    background-color: #409EFF !important;
}

.bg-success {
    background-color: #67C23A !important;
}

.bg-warning {
    background-color: #E6A23C !important;
}

.bg-info {
    background-color: #909399 !important;
}

/* 工具提示样式 */
.tooltip {
    font-size: 0.8rem;
}

/* 图表图例样式 */
.chart-legend {
    font-size: 0.9rem;
    padding: 10px;
    border-left: 3px solid #409EFF;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}

/* 排名标记样式 */
.rank-1 {
    color: #F56C6C;
    font-weight: bold;
}

.rank-2 {
    color: #E6A23C;
    font-weight: bold;
}

.rank-3 {
    color: #67C23A;
    font-weight: bold;
} 